package com.stu.manager.studentscoremanagersys.exception;

import com.stu.manager.studentscoremanagersys.enums.CodeEnum;
import lombok.Data;

@Data
public class BIZexception extends RuntimeException{
    private Integer code;
    public BIZexception(String msg){
        super(msg);
    }

    public BIZexception(CodeEnum codeEnum){
        super(codeEnum.getMessage());
        this.code = codeEnum.getCode();
    }
}
